<?php
	require './model/db_cfg.php';
	require './model/db.php';
	$_GET['tblname'] = 'shop_goods';
	$_GET['pk'] = 'gid';
	
	function getGoods(){
		$condition = " WHERE tid IN (SELECT tid FROM shop_type WHERE path LIKE '%-$_GET[tid]-%') OR tid=$_GET[tid]";
		return select($condition);
	}
	
	